package com.yanqu.road.server.timer.wingroom.chakra;

import com.yanqu.road.server.gameplayer.GamePlayer;
import com.yanqu.road.server.manger.manor.ManorMgr;
import com.yanqu.road.server.manger.player.GamePlayerMgr;
import com.yanqu.road.server.manger.wingroom.WingRoomChakraMgr;
import com.yanqu.road.utils.executor.GeneralTask;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;

/**
 * 被拜访次数衰减定时任务
 * @author ：cwj
 * @date ：2023/10/19 10:24
 */
public class CheckBeVisitNumRecoverTask extends GeneralTask {
    private Logger logger = LogManager.getLogger(this.getClass().getName());
    private boolean isRun = false;

    @Override
    public void doRun() {
        try {
            if (!isRun) {
                isRun = true;
                WingRoomChakraMgr.checkBeVisitNumRecover();
                isRun = false;
            }
        } catch (Exception e) {
            e.printStackTrace();
            isRun = false;
        }

    }
}
